﻿using System.Collections.Generic;

namespace Agile.DataAccess
{
    /// <summary>
    /// 
    /// </summary>
	public class BuilderData
	{
        /// <summary>
        /// 
        /// </summary>
		public List<BuilderColumn> Columns { get; set; }
        /// <summary>
        /// 
        /// </summary>
		public object Item { get; set; }
        /// <summary>
        /// 
        /// </summary>
		public string ObjectName { get; set; }
        /// <summary>
        /// 
        /// </summary>
		public IDbCommand Command { get; set; }
        /// <summary>
        /// 
        /// </summary>
		public List<BuilderColumn> Where { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<BuilderColumn> OrderBy { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="command"></param>
        /// <param name="objectName"></param>
		public BuilderData(IDbCommand command, string objectName)
		{
			ObjectName = objectName;
			Command = command;
			Columns = new List<BuilderColumn>();
			Where = new List<BuilderColumn>();
            OrderBy = new List<BuilderColumn>();
		}
	}
}
